﻿package net.wangit.support.action;

import net.wangit.Ajax;
import net.wangit.context.ActionContext;
import net.wangit.support.Action;

/**
 * 处理doAjax()/doAjaxSubmit()方法内的参数及Action的“自定义参数”
 * 
 * @author watson Feb 25, 2010
 */
public class AjaxAction implements Action {

	public AjaxAction() {
	}

	// 执行业务逻辑，Action执行失败时需要通过ActionResult.setSuccessful(false)设为失败。
	public ActionContext execute(ActionContext ac) throws Exception {
		Ajax ajax = new Ajax(ac);
		ajax.send();
		return ac;
	}
}
